﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;
using System.Linq;
using System.Globalization;
using WallySW.WinApp.Properties;
using WallySW.WinApp;
using System.Threading;
using System.Resources;

namespace WinApp
{
    public partial class Form1 : Form
    {
        private ResourceManager res = new System.Resources.ResourceManager("WallySW.WinApp.lang", typeof(Form1).Assembly);
        
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
            changeCulture();
        }

        private void changeCulture()
        {
            try
            {
                button1.Text = res.GetString("btnOK");
                button2.Text = res.GetString("btnCancel");
                this.Text = res.GetString("Hello");
            }
            catch (Exception ex)
            {

                
            }
        }
    }
}
